package example.springboot.mapper;

import example.springboot.model.Question;
import example.springboot.model.t_user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface questionMapper extends tk.mybatis.mapper.common.Mapper<Question> {
    @Select("select * from question where id=#{id}")
    Question byIdFind(@Param("id") String id);
    @Select("select * from question where creator=#{creator}")
    List<Question> byCreatorFind(@Param("creator") String creator);
}
